from django.urls import path, include

from rest_framework.routers import DefaultRouter

from blogadmin import views

router = DefaultRouter()
router.register(r'post', views.PostViewSet)
urlpatterns = [
    path("login/", views.login, name="login"),
    path('saveAvatar/', views.upload_avatar, name="upload_avatar"),
    path("", include(router.urls))
]
